package org.six11.ss.server.bean;
// Generated Mar 28, 2009 5:55:23 PM by Hibernate Tools 3.2.2.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ThemeOptions generated by hbm2java
 */
@Entity
@Table(name="ThemeOptions"
)
public class ThemeOptions  implements java.io.Serializable {


     private int id;
     private Set<Vote> votes = new HashSet<Vote>(0);
     private Game game;
     private Theme theme;

    public ThemeOptions() {
    }

    public ThemeOptions(Set<Vote> votes, Game game, Theme theme) {
       this.votes = votes;
       this.game = game;
       this.theme = theme;
    }
   
     @Id @GeneratedValue
    
    @Column(name="id", nullable=false)
    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
@OneToMany(fetch=FetchType.LAZY, mappedBy="themeOption")
    public Set<Vote> getVotes() {
        return this.votes;
    }
    
    public void setVotes(Set<Vote> votes) {
        this.votes = votes;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="gameID", unique=true)
    public Game getGame() {
        return this.game;
    }
    
    public void setGame(Game game) {
        this.game = game;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="themeID", unique=true)
    public Theme getTheme() {
        return this.theme;
    }
    
    public void setTheme(Theme theme) {
        this.theme = theme;
    }




}


